package org.xxpay.core.service;

import org.xxpay.core.entity.AlipayCash;
import org.xxpay.core.entity.AlipayCashDetail;

import java.util.List;

public interface IAlipayCashService {

    List<AlipayCash> select(int pageIndex, int pageSize, AlipayCash alipayCash);

    int count(AlipayCash alipayCash);

    AlipayCash findById(Integer id);

    int add(AlipayCash alipayCash);

    int update(AlipayCash alipayCash);

    Integer save(AlipayCash alipayCash, List<AlipayCashDetail> details);

    /** 取消发放， 更新任务为取消，明细状态为取消 **/
    void cancel(Integer cashId);
}
